Skip to content

Conversation

@clarfonthey
Copy link
Contributor

@clarfonthey clarfonthey commented Oct 23, 2025

Reported issue: #147964
Original PR: #145279
Previous revert: #148011
const Borrow/Deref tracking issue: #143773

Should have additional crater run to verify this fixes the issue.

Since other PR is in the queue, this will need to be rebased after that merges. Also will want a beta nomination.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 23, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 23, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@clarfonthey
Copy link
Contributor Author

@rustbot blocked

@rustbot rustbot added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 23, 2025
@theemathas theemathas added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Oct 23, 2025
@clarfonthey
Copy link
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-blocked Status: Blocked on something else such as an RFC or other implementation work. labels Oct 23, 2025
@clarfonthey clarfonthey force-pushed the const-convert-revert-2 branch from 72c9876 to ebd5bea Compare October 23, 2025 12:51
@rustbot
Copy link
Collaborator

rustbot commented Oct 23, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@cuviper
Copy link
Member

cuviper commented Oct 23, 2025

Should have additional crater run to verify this fixes the issue.

How about adding the minimized regression test?

@clarfonthey
Copy link
Contributor Author

Right, I wasn't sure what the timing was for the beta backport but I can add one later today.

@clarfonthey
Copy link
Contributor Author

clarfonthey commented Oct 23, 2025

Added a simple regression test which seems to both pass with this fix, and fail without it. No idea if this is best as a UI test in its current location or not, so, feel free to suggest changes if you have opinions about it.

Also made a separate commit in case the backport timing means we want to merge without the test bikeshedding sooner.


Also to clarify, when I meant that a crater run is necessary, I mean that there might have been other inference issues caused by trait constification that didn't surface due to the existence of these issues, so, it's worth double-checking after everything is merged. Not sure if this specific issue is fully resolved after this PR or not.

@cuviper
Copy link
Member

cuviper commented Oct 23, 2025

r? cuviper

@bors r+ rollup

Also, we approved a revert+backport in the libs meeting: zulip

@rustbot label +beta-accepted

@bors
Copy link
Collaborator

bors commented Oct 23, 2025

📌 Commit 4a4f3b0 has been approved by cuviper

It is now in the queue for this repository.

@rustbot rustbot assigned cuviper and unassigned Mark-Simulacrum Oct 23, 2025
@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 23, 2025
@rustbot rustbot added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Oct 23, 2025
Zalathar added a commit to Zalathar/rust that referenced this pull request Oct 23, 2025
…, r=cuviper

Revert constification of `Borrow` and `Deref for Cow` due to inference failure

Reported issue: rust-lang#147964
Original PR: rust-lang#145279
Previous revert: rust-lang#148011
`const Borrow`/`Deref` tracking issue: rust-lang#143773

Should have additional crater run to verify this fixes the issue.

Since other PR is in the queue, this will need to be rebased after that merges. Also will want a beta nomination.
bors added a commit that referenced this pull request Oct 24, 2025
Rollup of 3 pull requests

Successful merges:

 - #148016 (Revert constification of `Borrow` and `Deref for Cow` due to inference failure)
 - #148039 (Add myself to the review rotation)
 - #148042 (test(frontmatter): Cover spaces between infostring parts)

r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit that referenced this pull request Oct 24, 2025
Rollup of 5 pull requests

Successful merges:

 - #148016 (Revert constification of `Borrow` and `Deref for Cow` due to inference failure)
 - #148021 ([rustdoc] Simplify module rendering and HTML tags handling)
 - #148039 (Add myself to the review rotation)
 - #148042 (test(frontmatter): Cover spaces between infostring parts)
 - #148054 (Streamline iterator chaining when computing successors.)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 3f40ce5 into rust-lang:master Oct 24, 2025
11 checks passed
@rustbot rustbot added this to the 1.92.0 milestone Oct 24, 2025
rust-timer added a commit that referenced this pull request Oct 24, 2025
Rollup merge of #148016 - clarfonthey:const-convert-revert-2, r=cuviper

Revert constification of `Borrow` and `Deref for Cow` due to inference failure

Reported issue: #147964
Original PR: #145279
Previous revert: #148011
`const Borrow`/`Deref` tracking issue: #143773

Should have additional crater run to verify this fixes the issue.

Since other PR is in the queue, this will need to be rebased after that merges. Also will want a beta nomination.
@Zalathar
Copy link
Contributor

Bors hasn't noticed that this was merged.

@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 24, 2025
@clarfonthey clarfonthey deleted the const-convert-revert-2 branch October 24, 2025 13:29
@cuviper cuviper mentioned this pull request Oct 24, 2025
@cuviper cuviper modified the milestones: 1.92.0, 1.91.0 Oct 24, 2025
@cuviper cuviper removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Oct 24, 2025
bors added a commit that referenced this pull request Oct 25, 2025
[beta] backports

- Revert constification of `AsRef for Cow` due to inference failure #148011
- Revert constification of `Borrow` and `Deref for Cow` due to inference failure #148016
- Revert "fix: Filter suggestion parts that match existing code" #148043
- Revert "feat: implement `hash_map!` macro" #148049
- fix panic when rustc tries to reduce intermediate filenames len with utf8 #148018

r? cuviper
bors added a commit that referenced this pull request Oct 25, 2025
[beta] backports

- Revert constification of `AsRef for Cow` due to inference failure #148011
- Revert constification of `Borrow` and `Deref for Cow` due to inference failure #148016
- Revert "fix: Filter suggestion parts that match existing code" #148043
- Revert "feat: implement `hash_map!` macro" #148049
- fix panic when rustc tries to reduce intermediate filenames len with utf8 #148018

r? cuviper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-accepted Accepted for backporting to the compiler in the beta channel. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants